import { Snowflake } from "../utils/Snowflake";


/*
    {
        "version":1687274989356,
        "type":0,
        "topic":null,
        "rate_limit_per_user":0,
        "position":0,
        "permission_overwrites":{},
        "name":"notes",
        "last_pin_timestamp":"2023-04-15T11:16:17+00:00",
        "last_message_id":"1175136107692826846",
        "id":"595032489530097846",
        "icon_emoji":{
            "name":"📝",
            "id":null
        },
        "flags":0
    }


    // Real channel
    {
        "version":1684687887730,
        "type":0,
        "topic":"This is a help channel. You can claim your own help channel in the Help: Open category.",
        "rate_limit_per_user":0,
        "position":57,
        "permission_overwrites":[
            {
                "type":0,
                "id":"745039155498582067",
                "deny":"0",
                "allow":"1024"
            },
            {
                "type":0,
                "id":"745037351163527189",
                "deny":"377957124096",
                "allow":"0"
            },{
                "type":0,
                "id":"745038904532402237",
                "deny":"0",
                "allow":"1024"
            }
        ],
        "parent_id":"763429965726351392",
        "name":"help-general-19",
        "last_message_id":"933872775741968444",
        "id":"884572240644022282",
        "icon_emoji":{
            "name":"💡",
            "id":null
        },
        "flags":0
    }

    // Folder
    {
        "version":1671565872399,
        "type":4,
        "position":12,
        "permission_overwrites":[
            {
                "type":0,
                "id":"745039155498582067",
                "deny":"0",
                "allow":"1024"
            },
            {
                "type":0,
                "id":"745037351163527189",
                "deny":"377957124096",
                "allow":"0"
            },
            {
                "type":0,
                "id":"745038904532402237",
                "deny":"0",
                "allow":"1024"
            }
        ],
        "name":"Help Archive (Locked)",
        "id":"763429965726351392",
        "flags":0
    }
*/

export interface GuildChannelDto {
    id: Snowflake
    parent_id?: string
    type: number
    position: number
    name: string
    last_message_id: string
}